$(function () {
    $(document).keydown(function (event) {
        if (event.keyCode == 13) {
            $.get(CONTROL + '&m=answer', function (message) {
                $("#message").html(message);
            });
        }
    })
})
/**
 * 获得页面中文本信息
 */
function get_message() {
    $.get(CONTROL + '&m=get_message', function (data) {
        $("#message").html(data.title);
        var _point_msg = '';
        $.each(data.point, function (i) {
            _point_msg += '&nbsp;&nbsp;&nbsp;'+data.point[i]['title'] + ' : ' + data.point[i]['point']+'分';
            _point_msg += '&nbsp;&nbsp;&nbsp;';
        })
        $("div.point").html(_point_msg);
    }, 'json');
}
get_message();
setInterval(get_message,500);